<?php

use think\facade\Route;
/**
 * 管理后台
 */
Route::group('admin', function () {
	Route::any('/index', 'admin.index/index'); //首页
})->middleware(app\demo\middleware\admincheck::class);


/**
 * 用户后台
 */
Route::group('user',function(){
	Route::any('/index', 'user.index/index'); //首页
	Route::any('/update', 'user.index/updateconfig'); //首页

	Route::any('/setlist', 'user.set/setlist'); 
	Route::any('/setinfo', 'user.set/setinfo'); 
	Route::any('/form', 'user.set/form'); 
	Route::any('/settype', 'user.set/settype'); 
	Route::any('/upload', 'user.index/upload'); 
	Route::any('/setform', 'user.set/setform'); 
	Route::any('/getsetlist', 'user.set/getsetlist'); 
	
	
})->middleware(app\demo\middleware\check::class);